import { v4 as uuidv4 } from 'uuid';
//单例
export const getUUid=()=>{
    let uuid_name=localStorage.getItem('UUIDTOKEN')
    //如果没有此 id
    if(!uuid_name){
        //生成
        uuid_name=uuidv4()
        //存储
        localStorage.setItem('UUIDTOKEN',uuid_name)
    }
    return uuid_name
}